package com.demo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 出院带药清单表
 * @author zm
 * @since 2020-12-04
 */
@Data
@TableName("pd_discharge_summary_medicine")
@ApiModel(value="DischargeSummaryMedicine对象", description="出院带药清单表")
public class DischargeSummaryMedicine implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "出院带药项流水号")
    @TableId(value = "medicine_item_id", type = IdType.AUTO)
    private Integer medicineItemId;

    @ApiModelProperty(value = "总结编号")
    @TableField("discharge_summary_id")
    @NotNull(message = "总结编号不能为空")
    private Integer dischargeSummaryId;

    @ApiModelProperty(value = "药物编号")
    @TableField("medicine_id")
    private Integer medicineId;

    @ApiModelProperty(value = "剂量")
    @TableField("medicine_dose")
    @NotNull(message = "剂量不能为空")
    private Integer medicineDose;

    @ApiModelProperty(value = "单位")
    @TableField("medicine_unit")
    @NotNull(message = "单位不能为空")
    private String medicineUnit;

    @ApiModelProperty(value = "用法")
    @TableField("medicine_usage")
    @NotBlank(message = "用法不能为空")
    private String medicineUsage;

    @ApiModelProperty(value = "频率")
    @TableField("medicine_frequency")
    @NotBlank(message = "频率不能为空")
    private String medicineFrequency;

    @ApiModelProperty(value = "有效期")
    @TableField("validity_day")
    @NotNull(message = "有效期不能为空")
    private Integer validityDay;


}
